<?php

namespace WoXuanWang\Settings\Models;

use Eloquent as Model;


class Setting extends Model
{

    public $table = 'settings';


    public $fillable = [
        'field',
        'data'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'field' => 'string',
        'data'  => 'string',
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'field' => 'required'
    ];
    
}
